/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.comut.crud.ejb.interfaces;

import com.comut.crud.pojo.subgroup.Subgroup;
import com.comut.lib.exception.ObjectFoundException;
import com.comut.lib.exception.ObjectNotFoundException;
import javax.jws.WebMethod;

/**
 *
 * @author asantos
 */
public interface ISubgroupAction {
    
    /**
     * Inserts Subgroup on the database
     *
     * @param subgroup the {@link Subgroup} to be inserted
     * @return the inserted {@link Subgroup}
     */
    @WebMethod
    public Subgroup insertSubgroup(Subgroup subgroup) throws ObjectFoundException;

    /**
     * Deletes a Subgroup from the database
     *
     * @param subgroup the {@link Subgroup} to be deleted
     */
    @WebMethod
    public void deleteSubgroup(Subgroup subgroup) throws ObjectNotFoundException;

    /**
     * Update a event on the database
     *
     * @param subgroup the update {@link subgroup}     * 
     */
    @WebMethod
    public void updateSubgroup(String subgroup) throws ObjectNotFoundException;

    /**
     * Gets a Subgroup from the database
     *
     * @param subgroup the {@link Subgroup} to be found
     * @return the {@link Subgroup} found
     */
    @WebMethod
    public Subgroup getSubgroup(Subgroup subgroup) throws ObjectNotFoundException;
}
